//
//  CWSportVC.m
//  大神专制黑马行
//
//  Created by chenWei on 2017/5/10.
//  Copyright © 2017年 陈伟. All rights reserved.
//

#import "CWSportMainVC.h"
#import "CWSportingVC.h"


@interface CWSportMainVC ()

@end

@implementation CWSportMainVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}


#pragma mark - 运动类型
- (IBAction)sportButtonClick:(UIButton *)sender {
    
    
    
    //跳转到运动中界面
    UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"CWSport" bundle:nil];
    CWSportingVC *sportingVC = [storyBoard instantiateViewControllerWithIdentifier:@"CWSportingVC"];
    
    //赋值
    sportingVC.sportType = sender.tag;
    
    //跳转
    [self presentViewController:sportingVC animated:YES completion:nil];
    
    
}








- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
